import request from '@/utils/request'

// 查询执法文书列表
export function listEnforcementDocument(query) {
  return request({
    url: '/dataIntegration/enforcementDocument/list',
    method: 'get',
    params: query
  })
}

// 查询执法文书详细
export function getEnforcementDocument(id) {
  return request({
    url: '/dataIntegration/enforcementDocument/' + id,
    method: 'get'
  })
}

// 新增执法文书
export function addEnforcementDocument(data) {
  return request({
    url: '/dataIntegration/enforcementDocument',
    method: 'post',
    data: data
  })
}

// 修改执法文书
export function updateEnforcementDocument(data) {
  return request({
    url: '/dataIntegration/enforcementDocument/editById',
    method: 'post',
    data: data
  })
}

// 删除执法文书
export function delEnforcementDocument(id) {
  return request({
    url: '/dataIntegration/enforcementDocument/deleteByIds',
    method: 'post',
    data: id

  })

}

export function getDocumentTypeList(query) {
  return request({
    url: '/dataIntegration/enforcementDocument/getDocumentTypeList',
    method: 'get',
    data:query
  })
}
